﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WpfApp1.Models
{
    public class Code
    {
        public int ID { get; set; }
        public int ParentID { get; set; }
        public string? Name { get; set; }
        public string? Text { get; set; }

        [NotMapped]
        public ObservableCollection<Code> ChildNodes { get; set; } = new();
    }
}